import Vue from "vue";
import Vuex from "vuex";
import user from "./modules/users"
import app from "./modules/app"
import premission from "./modules/permission"
Vue.use(Vuex);

export default new Vuex.Store({
 modules:{
  user,
  app,
  premission 
 },
 getters:{
   roles: state => state.user.Permissions,
   permission_routes:state=>state.premission.routes,
   sidebar:state=>state.app.sidebar
 }
});
